﻿using UnityEngine;
using System.Collections;

public class Timer : Actors 
{
	private float m_CurrentTime;
	private int m_Counter;
	
	public Timer()
	{
		m_CurrentTime = 0.0f;
	}
	
	public void Kill()
	{
		Destroy(aGameObject);
	}
	
	private void Start () 
	{
		Debug.Log("Timer Start");	
	}
	
	private void Update () 
	{
		m_CurrentTime += Time.deltaTime;
		//Debug.Log(m_CurrentTime);
	}
	
	public void Reset()
	{
		m_CurrentTime = 0.0f;	
	}
	
	public float Delta
	{
		get { return m_CurrentTime; }
		set { m_CurrentTime = value; }
	}
	
	public int Counter
	{
		get { return m_Counter; }
		set { m_Counter = value; }
	}
}
